<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>电商平台</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome for icons -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            padding-top: 56px; /* 为固定导航栏预留空间 */
            background-color: #f8f9fa;
        }
        .jumbotron {
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            padding: 4rem 2rem;
        }
        .card-group {
            margin-top: 3rem;
        }
        .card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
        .footer {
            background-color: #212529;
            color: #ffffff;
            padding: 2rem 0;
        }
        .footer a {
            color: #adb5bd;
            margin: 0 1rem;
            text-decoration: none;
        }
        .footer a:hover {
            color: #ffffff;
        }
    </style>
</head>
<body>

    <!-- 固定导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">电商平台</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" 
                    aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="切换导航">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNavDropdown">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="/user/1">普通用户</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/user/2">管理员用户</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- Jumbotron -->
    <div class="jumbotron">
        <h1 class="display-4">欢迎来到电商平台</h1>
        <p class="lead">请选择您的用户类型，开始愉快的购物体验！</p>
        <hr class="my-4">
        <p>无论您是普通用户还是管理员，我们都有适合您的功能。</p>
    </div>

    <!-- 卡片组 -->
    <div class="container">
        <div class="card-group">
            <div class="card">
                <div class="card-body text-center">
                    <i class="fas fa-user fa-4x mb-3"></i>
                    <h5 class="card-title">普通用户</h5>
                    <p class="card-text">作为普通用户，您可以浏览商品、下单购买，享受便捷的购物体验。</p>
                    <a href="/user/1" class="btn btn-primary">进入</a>
                </div>
            </div>
            <div class="card">
                <div class="card-body text-center">
                    <i class="fas fa-user-shield fa-4x mb-3"></i>
                    <h5 class="card-title">管理员用户</h5>
                    <p class="card-text">作为管理员用户，您可以管理商品、查看订单，掌控平台的方方面面。</p>
                    <a href="/user/2" class="btn btn-success">进入</a>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container text-center">
            <p>&copy; 2025 电商平台. All rights reserved.</p>
            <div>
                <a href="#"><i class="fab fa-facebook fa-lg"></i></a>
                <a href="#"><i class="fab fa-twitter fa-lg"></i></a>
                <a href="#"><i class="fab fa-instagram fa-lg"></i></a>
                <a href="#"><i class="fab fa-linkedin fa-lg"></i></a>
            </div>
        </div>
    </footer>

    <!-- Bootstrap JS 和依赖 -->
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
</body>
</html>